﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;

namespace FiddlerAmfParser.Utils
{
	public static class ExceptionHelper
	{
		public static string GetMessageForException(Exception ex)
		{
			return string.Format(
				CultureInfo.CurrentCulture,
				"Exception occured:\r\n{0}: {1}\r\n\r\nStack trace:\r\n{2}\r\n\r\n",
				ex.GetType().Name,
				ex.Message,
				ex.StackTrace);
		}
	}
}
